package com.cslg.ac.demo.entity.user.team;

import com.cslg.ac.demo.util.string.StringUtil;

public class TeamHead {
    private Integer id;
    private String hName;
    private String hPhone;
    private String hIntroduction;
    private String idCard;
    private String realName;

    public boolean isChangeValid(int realNameLength,int phoneLength){
        if(StringUtil.haveNullOrEmpty(hName,hPhone)){
            return false;
        }
        if(StringUtil.lengthAbove(hName,realNameLength) || StringUtil.lengthAbove(hPhone,phoneLength)){
            return false;
        }
        return true;
    }

    public TeamHead() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }



    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String gethName() {
        return hName;
    }

    public void sethName(String hName) {
        this.hName = hName;
    }

    public String gethPhone() {
        return hPhone;
    }

    public void sethPhone(String hPhone) {
        this.hPhone = hPhone;
    }

    public String gethIntroduction() {
        return hIntroduction;
    }

    public void sethIntroduction(String hIntroduction) {
        this.hIntroduction = hIntroduction;
    }

    @Override
    public String toString() {
        return "TeamHeadPO{" +
                "id=" + id +
                ", hName='" + hName + '\'' +
                ", hPhone='" + hPhone + '\'' +
                ", hIntroduction='" + hIntroduction + '\'' +
                ", idCard='" + idCard + '\'' +
                ", realName='" + realName + '\'' +
                '}';
    }
}
